<template>
	<view class="my-container">
		<my-login v-if="!token"></my-login>
    <my-info v-else></my-info>
	</view>
</template>

<script>
  import badgeMix from '../../mixins/tabbar-badge.js'
  import myLogin from '../../components/my-login.vue'
  import myInfo from '../../components/my-info.vue'
  import {mapState} from 'vuex'
	export default {
    mixins:[badgeMix],
    components:{
      myLogin,
      myInfo
    },
    computed:{
      ...mapState('m_user',['token'])
    },
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
page,.my-container{
  height:100%;
}
</style>
